
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgChildForm, NgChildFormArray, NgValidateForm } from '@farris/devkit';
import { DateConverter, MultiLangConverter } from '@farris/kendo-binding';

@Injectable()
@NgValidateForm({
    formGroupName: '项目信息',
    enableValidate: true
})

@Injectable()
export class DetailFormComponentViewmodelForm extends Form {
    @NgFormControl({
        id: 'xmlxbh_1072ad85_40qj',
        name: "{{xmlxbh_1072ad85_40qj}}",
        binding: 'xmlxbh',
        updateOn: 'blur',
        defaultI18nValue: '项目类型编号',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    xmlxbh: FormControl;

    @NgFormControl({
        id: 'xmlxmc_440a6eda_ysda',
        name: "{{xmlxmc_440a6eda_ysda}}",
        binding: 'xmlxmc',
        updateOn: 'blur',
        defaultI18nValue: '项目类型名称',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    xmlxmc: FormControl;

    @NgFormControl({
        id: 'xmlxbz_fe675cf0_xqkd',
        name: "{{xmlxbz_fe675cf0_xqkd}}",
        binding: 'xmlxbz',
        updateOn: 'blur',
        defaultI18nValue: '项目类型备注',
    })
    xmlxbz: FormControl;

}